package cn.tedu.front.search.pojo.po;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * 职位详情索引
 */
@Data
@Document(indexName = "job_details")
public class JobSimplePO implements Serializable {
    /**
     * 职位id
     */
    @Id
    private Long id;

    /**
     * 职位标题
     */
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String title;

    /**
     * 岗位要求
     */
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String jobRequire;

    /**
     * 薪资
     */
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String salary;

    /**
     * 学历
     */
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String degree;

    /**
     * 关键字
     */
    @Field(type = FieldType.Keyword)
    private String keyword;

    /**
     * 经验
     */
    @Field(type = FieldType.Keyword)
    private String experience;



}
